Import('incDir')
Import('libDir')


sourcelistEngine = Split("""

							src/analogDelay.cpp
							
						
					""")
					
sourcelistGUI = Split("""

						src/analogDelay_gtk.cpp
						#libraries/widgets/SimpleDial/SimpleDial.cpp
						
						
					
					""")					

engine = 'AnalogDelay.so'
gui = 'AnalogDelay_gtk.so'

env = Environment(CCFLAGS = '-O2', CPPPATH = incDir, LIBPATH=libDir)
env['STATIC_AND_SHARED_OBJECTS_ARE_THE_SAME']=1


envEngine = env.Clone( LIBS=['lv2_plugin'] )
envGUI = env.Clone( LIBS=['lv2_gtk2gui'] )

envEngine.ParseConfig( 'pkg-config --cflags --libs gtkmm-2.4')
envGUI.ParseConfig( 'pkg-config --cflags --libs gtkmm-2.4')


binaryEng = envEngine.SharedLibrary(engine, source = sourcelistEngine)
binaryGUI = envGUI.SharedLibrary(gui, source = sourcelistGUI)

envEngine.InstallAs('./analogDelay.lv2/AnalogDelay.so', binaryEng)
envEngine.Alias('install', './analogDelay.lv2')

envGUI.InstallAs('./analogDelay.lv2/AnalogDelay_gtk.so', binaryGUI)
envGUI.Alias('install', './analogDelay.lv2')